@import './common';

section {

  .top-text {
    padding-top: 20px;
    padding-bottom: 10px;
    font-size: 30px;
    color: #ff6b08;
  }

  .row {
    .item-one {
      margin-bottom: 60px;

      .item-onepic {
        position: relative;

        img {
          width: 100%;
          border: 1px solid #eeeeee;
        }

        &::after {
          content: '技术突破：HTML5裸跑性能已可媲美APP';
          display: block;
          padding: 3%;
          display: flex;
          display: -webkit-flex;
          justify-content: center;
          align-items: center;
          position: absolute;
          bottom: 0;
          left: 0;
          width: 100%;
          word-break:break-all;
          background-color: rgba($color: #5e6366, $alpha: .8);
          font-size: 13px;
          color: #fff;
        }
      }

      &:nth-child(2) {
        .item-onepic {
          &::after {
            content: 'HTML5干货：LAYAWORLD  TFC秋季特刊';
          }
        }
      }

      &:nth-child(3) {
        .item-onepic {
          &::after {
            content: '慕和：手游大作《魔卡幻想》为何移植HTML5';
          }
        }
      }
    }
  }

  .item {
    .item-two {
      .pic-left {
        padding: 2%;
        width: 100%;
        border: 1px solid #dddddd;

        img {
          width: 100%;
        }
      }
    }

    .item-three {
      margin-bottom: 30px;
      display: flex;
      display: -webkit-flex;
      flex-direction: column;

      .active-text {
        color: #ff6900;
      }

      p {
        margin-bottom: 5px;
        font-size: 14px;

        &:first-child {
          font-size: 18px;
        }
      }

      .detail {
        padding: 1% 0;
        display: flex;
        display: -webkit-flex;
        align-items: center;
        justify-content: center;
        align-self: flex-end;
        width: 20%;
        color: #ff6900;
        background-color: #fff;
        border: 1px solid #ff6900;
        outline: none;
        cursor: pointer;
        letter-spacing: 1px;
        border-radius: 15px;
        font-size: 14px;
      }

      .active-button {
        background-color: #ff6900;
        color: #fff;
      }
    }

  }

  .last {
    margin-top: 30px;
    margin-bottom: 30px;
    border-top: 1px dashed #d4d4d4;
    display: flex;
    display: -webkit-flex;

    >button {
      margin-top: 30px;
      padding: 1% 1.5%;
      text-align: center;
      border: 1px solid #dddddd;
      background-color: #fff;
      border-radius: 3px;
      outline: none;
      cursor: pointer;
      letter-spacing: 1px;
      font-size: 12px;
      color: #2a2a2a;

      &:first-child {
        margin-left: 30%;
      }
    }

    .active-last {
      background-color: #e34637;
      color: #fff;
    }
  }

  @media screen and (max-width:767.5px) {
    .container {
      .top-text {
        font-size: 26px;
      }

      .row {
        .item-one {
          margin-bottom: 30px;

          .item-onepic {
            &::after {
              font-size: 10px;
            }
          }

          &:first-child {
            .item-onepic {
              &::after {
                font-size: 20px;
              }
            }
          }
        }
      }

      .item {
        .item-three {
          margin-bottom: 40px;

          p {
            &:first-child {
              margin-top: 15px;
            }

            &:nth-child(3) {
              line-height: 20px;
            }
          }

          button{
            width: 23%;
          }
        }
      }

    }

    .last {
      margin: 30px 0;
      // justify-content: center;
      button {
        &:first-child {
          margin-left: 20%;
        }
      }
    }
  }

  @media screen and (min-width:768px) and(max-width:992px) {
    .container {
      .top-text {
        font-size: 28px;
      }

      .row {
        .item-one {
          margin-bottom: 30px;

          .item-onepic {
            &::after {
              font-size: 10px;
            }
          }
        }
      }

      .item {
        .item-three {
          margin-bottom: 15px;

          p {
            &:first-child {}

            &:nth-child(3) {
              font-size: 12px;
            }
          }

          .detail {}
        }
      }
    }

    .last {
      button {
        &:first-child {
          margin-left: 26%;
        }
      }
    }
  }
}